package chapter01;

import java.util.Scanner;

public class Test12_Switch {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入1-7之间的数字：");
        int number = scanner.nextInt();
        switch (number){
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
                System.out.println("工作日");
                break;
            case 6:
            case 7:
                System.out.println("休息日");
                break;
            default:
                System.out.println("输入的内容不正确");
                break;
        }
    }
}
